isSecure

open fun isSecure(): Boolean

Returns true if the cookie is restricted to a secure protocol (HTTPS or WSS) or false if it can be sent using any protocol.